package main

import (
	"fmt"
	"strconv"
)

func main() {
	var num int
	var str1 string
	var str string
	fmt.Scanln(&num)
	lens := len(strconv.Itoa(num))
	for i := 1; i <= lens; i++ {
		str1 = strconv.Itoa(num % 10)
		str += str1
		num /= 10
	}
	fmt.Println(str)
}

